import { firstCharacterToLowerCase } from '../utils/jk/jk-tool';
import { systemUserColumnConfigGet } from '../api/system/column-config';

export default {
	data() {
		return {
			tableColumnList: []
		};
	},
	methods: {
		getMenuColumnListRequest() {
			return systemUserColumnConfigGet({ path: firstCharacterToLowerCase(this.$route.name), filterShow: true }).then(res => {
				if (res.data.status === 200) {
					this.tableColumnList = res.data.res.columnConfigList && res.data.res.columnConfigList.length ? res.data.res.columnConfigList[0].itemList : [];
				}
			});
		}
	}
};
